package com.azxc.rapid.plus.dict.feign;

import com.azxc.rapid.core.tool.api.R;
import com.azxc.rapid.system.entity.DictBiz;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author linym
 * @className: IDictBizPlusClient
 * @description:
 * @date 2022/8/22 11:40
 * @version：1.0
 */
@FeignClient(
	value = "rapid-core-plus",
	fallback = IDictBizPlusClientFallback.class
)
public interface IDictBizPlusClient {
	String API_PREFIX = "/client-plus";

	String GET_LIST_BY_TENANTID=API_PREFIX + "/dict-biz/get-listByTenantid";

	/**
	 * 获取字典表
	 *
	 * @param code 字典编号
	 * @param tenantId 租户id
	 * @return
	 */
	@GetMapping(GET_LIST_BY_TENANTID)
	R<List<DictBiz>> getListByTenantid(@RequestParam("code") String code, @RequestParam("tenantId") String tenantId);

}
